<?php
/*
 * @Author: 孙开源 && sunkaiyuan@namenode.cn
 * @Date: 2023-04-12 16:45:39
 * @LastEditors: 孙开源 && sunkaiyuan@namenode.cn
 * @LastEditTime: 2023-04-20 09:53:45
 * @Description: 工艺接口
 * 
 */

namespace szzhijing\OIDC;

use szzhijing\Kernel\Client as BaseClient;

class Client extends BaseClient
    {
    public function token(
        $client_id = '',
        $client_secret = '',
        $grant_type = "client_credentials"
    ) {
        return $this->popMiddleware('access_token')->postJson('iam-oneid/oidc/token', [], compact("client_id", "client_secret", "grant_type"));
        }
    }